/**
 * Copyright © 2011 Software in Life Inc. All rights reserved.
 */
package com.softwareinlife.restful.server.alarm.model;

import java.io.Serializable;
import java.util.List;
import java.util.logging.Logger;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * <b>RESTful Web Service Model for Alarm Information</b>
 * 
 * @author Jang, Sun-Jin(jangsunjin@softwareinlife.com)
 */
@XmlRootElement(name = "datas")
@XmlAccessorType(XmlAccessType.FIELD)
public class DatasModel implements Serializable {

	/**
	 * Serial Version UID
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * Logger
	 */
	protected static Logger logger = Logger.getLogger("model");

	/**
	 * List
	 */
	@XmlElement(name = "data")
	private List<AlarmModel> list;

	/**
	 * Constructor
	 */
	public DatasModel() {
		super();
	}

	/**
	 * Constructor
	 * 
	 * @param list
	 */
	public DatasModel(List<AlarmModel> list) {
		super();
		this.list = list;
	}

	/**
	 * @return the list
	 */
	public List<AlarmModel> getList() {
		return list;
	}

	/**
	 * @param list
	 *            the list to set
	 */
	public void setList(List<AlarmModel> list) {
		this.list = list;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "DatasModel [list=" + list + "]";
	}

}
